package com.qingyun.edusysteam.utils;


import cn.hutool.core.util.StrUtil;


public class RegexUtils {
    /**
     * 登录码正则
     */
    public static boolean isCodeInvalid(String code){
        return StrUtil.isEmpty(code) || !code.matches(RegexPatterns.VERIFY_CODE_REGEX);
    }
    /**
     * 账号正则 ：20XXXXX
     */
    public static boolean isAccountInvalid(String account){
        return StrUtil.isEmpty(account) || !account.matches(RegexPatterns.ACCOUNT_CODE_REGEX);
    }
    public static boolean isPasswordInvalid(String password){
        return StrUtil.isEmpty(password) || !password.matches(RegexPatterns.PASSWORD_REGEX);
    }
}
